luci-base: replace css right class with button-row
authorFlorian Eckert <[email protected]>
Thu, 6 Mar 2025 09:32:56 +0000 (10:32 +0100)
committerPaul Donald <[email protected]>
Thu, 6 Mar 2025 17:21:32 +0000 (11:21 -0600)
These were forgotten when refactoring and should also get the css class
'button-row'

Signed-off-by: Florian Eckert <[email protected]>
modules/luci-base/htdocs/luci-static/resources/ui.js

index 1dc5ee15bfe70c2a99b97fb9bd707d9a459ecc79..cbb28a3bcfc0cad1ff074cbad9ebc1bed3b601e6 100644 (file)
@@ -4639,7 +4639,7 @@ const UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                        E('div', { 'class': 'uci-change-legend-label' }, [
                                                E('var', {}, E('del', '&#160;')), ' ', _('Option removed') ])]),
                                E('br'), list,
-                               E('div', { 'class': 'right' }, [ //button-row?
+                               E('div', { 'class': 'button-row' }, [
                                        E('button', {
                                                'class': 'btn cbi-button',
                                                'click': UI.prototype.hideModal
@@ -4755,7 +4755,7 @@ const UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                                UI.prototype.changes.displayStatus('warning', [
                                                        E('h4', _('Configuration changes have been rolled back!')),
                                                        E('p', _('The device could not be reached within %d seconds after applying the pending changes, which caused the configuration to be rolled back for safety reasons. If you believe that the configuration changes are correct nonetheless, perform an unchecked configuration apply. Alternatively, you can dismiss this warning and edit changes before attempting to apply again, or revert all pending changes to keep the currently working configuration state.').format(L.env.apply_rollback)),
-                                                       E('div', { 'class': 'right' }, [
+                                                       E('div', { 'class': 'button-row' }, [
                                                                E('button', {
                                                                        'class': 'btn',
                                                                        'click': L.bind(UI.prototype.changes.displayStatus, UI.prototype.changes, false)